package com.baige.api.app.sdk.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 第三方登陆请求对象
 * @author wulg
 * @date 2018/12/13.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "UserThirdPartLoginRequest", description = "第三方登陆请求对象")
public class UserThirdPartLoginRequest implements Serializable
{
    @ApiModelProperty(value = "第三放账户类型")
    @NotNull(message = "第三放账户类型不能为空")
    private int thirdPartType;
    @ApiModelProperty(value = "第三方openId")
    @NotEmpty(message = "第三方openId不能为空")
    private String openId;
}
